/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.kedacom.demo.sigar.cloudify;

import com.kedacom.demo.sigar.util.SigarUtil;
import org.hyperic.sigar.Sigar;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 *
 * @author xiaojinghai
 */
public class TestMonitorData {

    private static final Logger logger = LoggerFactory.getLogger(TestMonitorData.class);

    public static void main(String args[]) {
        Sigar sigar = SigarUtil.getSigarInstance();
        try {
            MonitorData md = new MonitorData(sigar, sigar.getPid());
            logger.info(md.getDataMap().toString());

        }
        catch (MonitorException ex) {
            logger.error(ex.getMessage());
        }

    }
}
